package cn.janus.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author janus
 * @since 2024-08-02
 */
@TableName("user_roles")
@ApiModel(value = "UserRoles对象", description = "")
@Data
public class UserRoles implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("user_role_id")
    private String userRoleId;

    private String userId;

    private Integer roleId;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;


    @Override
    public String toString() {
        return "UserRoles{" +
                "userRoleId = " + userRoleId +
                ", userId = " + userId +
                ", roleId = " + roleId +
                ", createdAt = " + createdAt +
                ", updatedAt = " + updatedAt +
                "}";
    }
}
